<!--content_main -->
<div class="content_main">
	<div class="main_top">
		<ul class="pagenavi">
			<li><a href="/">首页</a></li>
			<li class="li2"><a href="/corporation/">企业大全</a></li>
			<li class="li2"><a href="/corporation/{{$corInfo.id}}/">{{$corInfo.name}}</a></li>
			<li class="li2">所有点评</li>
		</ul>
	</div>
	<!--pop-->
	<div class="popreplybg" id="popreplybg" style="width: 2000px; height: 3406px; display:none;"></div>
	<div class="pop" id="popreply" style="left: 329.5px; top: 143px; display:none;">
	  <div class="pop_tit" id="draghead"><img src="{{$host_root}}/images/close.gif" title="关闭" id="dialogClose"><!--<span><a id="dialogClose" href="javascript:;" rel="nofollow" target="_self" title="关闭"></a>--></span>快速回复</div>
	  <div class="in_pop">
		  <table border="0" cellpadding="0" cellspacing="0" width="100%">
		  <tbody>
		  <tr>
			  <td>
				<ul>
					<li><img src="{{$host_root}}/images/face/1.gif"/></li>
					<li><img src="{{$host_root}}/images/face/2.gif"/></li>
					<li><img src="{{$host_root}}/images/face/3.gif"/></li>
					<li><img src="{{$host_root}}/images/face/4.gif"/></li>
					<li><img src="{{$host_root}}/images/face/5.gif"/></li>
					<li><img src="{{$host_root}}/images/face/6.gif"/></li>
					<li><img src="{{$host_root}}/images/face/7.gif"/></li>
					<li><img src="{{$host_root}}/images/face/8.gif"/></li>
					<li><img src="{{$host_root}}/images/face/9.gif"/></li>
					<li><img src="{{$host_root}}/images/face/10.gif"/></li>
					<li><img src="{{$host_root}}/images/face/11.gif"/></li>
					<li><img src="{{$host_root}}/images/face/12.gif"/></li>
					<li><img src="{{$host_root}}/images/face/13.gif"/></li>
					<li><img src="{{$host_root}}/images/face/14.gif"/></li>
					<li><img src="{{$host_root}}/images/face/15.gif"/></li>
				</ul>
			  </td>

		  </tr>
		  <tr>
			<td>
			<form action="/response.php" method="POST" name="resForm" onsubmit="res_submit();return false;">
			<input id="res_cor_id" name="res_cor_id" type="hidden" value="{{$corInfo.id}}">
			<input id="res_page" name="res_page" type="hidden" value="{{$page}}">
			<input id="quote_id" name="quote_id" type="hidden" value="">
			<input id="quote_userId" name="quote_userId" type="hidden" value="">
			<input id="quote_userName" name="quote_userName" type="hidden" value="">
			<table>
			  <tr>
				  <td><textarea name="res_comment" id="res_comment" style="width:665px;height:200px;visibility:hidden;"></textarea></td>
			  </tr>
			  <tr>
				<td><font color="#FF6633">文明客观的回复！助人助己！</font></td>
			  </tr>
			  <tr>
			  <td>
				  <input class="btn2" value="提 交" type="submit">
			  </td>
			  </tr>
			</table>
			</form>
			</td>
		  </tr>		
		  </tbody></table>
	  </div>
	</div>
	<!--pop end-->
	<!--main left -->
	<div class="main_left">
		<div class="cor_info">
			<div class="cor_info_inner">
				<div class="cor_name">
					<h1>{{$corInfo.name}}</h1>
				</div>
				{{if $corInfo.estimate_total > 0}}
				<div class="est_total"><span>共有</span><em> <a href="#cor_est">{{$corInfo.estimate_total}}</a> </em>个评价</div>
				{{else}}
				<div class="est_total">暂无评论！赶紧去评价吧！</div>
				{{/if}}
				<div class="est_list">
					<dl class="h15">
						<dt>薪资福利：</dt>
						<dd>
							<div class="box"><div class="innerbox" style="width:{{$corInfo.sal_per|default:0}}%"></div></div><div class="percent">{{$corInfo.sal_per|default:0}}%</div>
						</dd>
					</dl>
					<div class="clear"></div>
					<dl class="h15">
						<dt>工作环境：</dt>
						<dd>
							<div class="box"><div class="innerbox" style="width:{{$corInfo.enr_per|default:0}}%"></div></div><div class="percent">{{$corInfo.enr_per|default:0}}%</div>
						</dd>
					</dl>
					<div class="clear"></div>
					<dl class="h15">
						<dt>发展机遇：</dt>
						<dd>
							<div class="box"><div class="innerbox" style="width:{{$corInfo.opp_per|default:0}}%"></div></div><div class="percent">{{$corInfo.opp_per|default:0}}%</div>
						</dd>
					</dl>
					<dl class="h15">
						<dt>压力指数：</dt>
						<dd>
							<div class="box"><div class="innerbox" style="width:{{$corInfo.pre_per|default:0}}%"></div></div><div class="percent">{{$corInfo.pre_per|default:0}}%</div>
						</dd>
					</dl>
				</div>
				<div class="cor_photo">
					<img src="{{$corInfo.imgPath}}" title="{{$corInfo.name}}" alt="{{$corInfo.name}}"/>
				</div>
				<div class="go_est">
					<a href="#add_estimate"><img src="/images/estimate.gif" title="我要点评" alt="我要点评"/></a>
				</div>
			</div>
		</div>
		<div id="cor_est">
			<div style="float:left;margin-top:16px;font-weight:700;font-size:15px;color:#FF6600;">所有点评列表：</div>
			<div class="fenye">
			{{$pageList}}
			</div>
			<div class="clear"></div>
			{{section loop=$estimateRow name="loop"}}
			<div class="review_out">
				<div class="review_left">
					<div class="review_face"><img src="{{$estimateRow[loop].faceImg}}" title="{{$estimateRow[loop].user_name}}" alt="{{$estimateRow[loop].user_name}}"></div>
				</div>
				<div class="review_right">
					<div class="review_content">
						<div class="company_list"><span class="list_1">薪资福利：</span><span class="list_2"><img src="/images/list_type_{{$estimateRow[loop].salary}}.gif"></span></div>													
						<div class="company_list"><span class="list_1">工作环境：</span><span class="list_2"><img src="/images/list_type_{{$estimateRow[loop].environment}}.gif"></span></div>
						<div class="company_list"><span class="list_1">发展机遇：</span><span class="list_2"><img src="/images/list_type_{{$estimateRow[loop].opportunity}}.gif"></span></div>
						<div class="company_list"><span class="list_1">压力指数：</span><span class="list_2"><img src="/images/list_yali_{{$estimateRow[loop].pressure}}.gif"></span></div>
					</div>
					{{if $estimateRow[loop].work_time}}
					<div class="review_content">
						<span class="list_1">在职时间：</span>{{$estimateRow[loop].work_time}}个月
					</div>
					{{/if}}
					<div class="review_content">
						<span class="est_con">{{$estimateRow[loop].content}}</span>
					</div>
					<div class="review_content">
						<span class="company_time">{{if $estimateRow[loop].showRes}}<a rel="res_{{$estimateRow[loop].user_id}}" href="javascript:void(0);" name="{{$estimateRow[loop].id}}_{{$estimateRow[loop].user_id}}_{{$estimateRow[loop].user_name}}">回复</a>&nbsp;&nbsp;{{/if}}{{$estimateRow[loop].user_name}}&nbsp;&nbsp;{{$estimateRow[loop].create_time}}</span>
					</div>
					{{if $estimateRow[loop].resRow}}
					<div class="review_content">
						{{foreach key=key item=item from=$estimateRow[loop].resRow}}
						{{if $key lt 2}}
						<div class="review_response">
							<div class="res_left">{{$item.res_user}}回复{{$item.est_user}}：</div>
							{{if $item.showRes}}<div class="res_res"><a rel="res_{{$item.res_user_id}}" href="javascript:;" name="{{$estimateRow[loop].id}}_{{$item.res_user_id}}_{{$item.res_name}}">回复</a></div>{{/if}}
							<div class="res_right">{{$item.content}}</div>
						</div>
						{{/if}}
						{{/foreach}}
						{{if $estimateRow[loop].resOver}}
						<div id="res_more_{{$estimateRow[loop].id}}" style="display:none;">
						{{foreach key=key item=item from=$estimateRow[loop].resRow}}
							{{if $key >= 2}}
							<div class="review_response">
							<div class="res_left">{{$item.res_user}}回复{{$item.est_user}}：</div>
							{{if $item.showRes}}<div class="res_res"><a rel="res_{{$item.res_user_id}}" href="javascript:;" name="{{$estimateRow[loop].id}}_{{$item.res_user_id}}_{{$item.res_name}}">回复</a></div>{{/if}}
							<div class="res_right">{{$item.content}}</div>
							</div>
							{{/if}}
						{{/foreach}}
						</div>
						<div class="arrow_down arrow" id="{{$estimateRow[loop].id}}"></div>
						{{/if}}
					</div>
					{{/if}}
				</div>
			</div>
			<div class="clear"></div>
			{{/section}}
			
			<div class="fenye">
			{{$pageList}}
			</div>
			<div class="clear"></div>
			<div class="add_estimate" id="add_estimate">
				<div class="add_estimate_title">
					<b>我要点评</b>
				</div>
				<div class="add_estimate_content">
					<form action="/comment.php" method="post" name="commentForm">
					<input type="hidden" name="cor_id" value="{{$corInfo.id}}">
						<table cellpadding="0" cellspacing="0" border="0" width="700px;">
							<tr>
								<td width="25%">
									薪资福利:
									<select name="salary" id='salary'>
										<option value="">请选择</option>
										<option value="4">很好</option>
										<option value="3">好</option>
										<option value="2">一般</option>
										<option value="1">差</option>	
									</select>
								</td>
								<td width="25%">
									工作环境:
									<select name="environment" id="environment">
										<option value="">请选择</option>
										<option value="4">很好</option>
										<option value="3">好</option>
										<option value="2">一般</option>
										<option value="1">差</option>	
									</select>
								</td>
								<td width="25%">
									发展机遇:
									<select name="opportunity" id="opportunity">
										<option value="">请选择</option>
										<option value="4">很好</option>
										<option value="3">好</option>
										<option value="2">一般</option>
										<option value="1">差</option>	
									</select>
								</td>
								<td width="25%">
									压力指数:
									<select name="pressure" id="pressure">
										<option value="">请选择</option>
										<option value="1">小</option>
										<option value="2">一般</option>
										<option value="3">大</option>
										<option value="4">很大</option>	
									</select>
								</td>
							</tr>
							<tr>
								<td colspan="4">在职时间：<input class="zaizhi" type="text" name="work_time" id="work_time" maxlength="3"/> 个月</td>
							</tr>
							<tr>
								<td colspan="4">点评内容：</td>
							</tr>
							<tr>
								<td colspan="4"><textarea name="content" id="content"  style="width:700px;height:200px;visibility:hidden;"></textarea></td>
							</tr>
							<tr>
								<td colspan="4">
									<ul>
										<li><img src="{{$host_root}}/images/face/1.gif"/></li>
										<li><img src="{{$host_root}}/images/face/2.gif"/></li>
										<li><img src="{{$host_root}}/images/face/3.gif"/></li>
										<li><img src="{{$host_root}}/images/face/4.gif"/></li>
										<li><img src="{{$host_root}}/images/face/5.gif"/></li>
										<li><img src="{{$host_root}}/images/face/6.gif"/></li>
										<li><img src="{{$host_root}}/images/face/7.gif"/></li>
										<li><img src="{{$host_root}}/images/face/8.gif"/></li>
										<li><img src="{{$host_root}}/images/face/9.gif"/></li>
										<li><img src="{{$host_root}}/images/face/10.gif"/></li>
										<li><img src="{{$host_root}}/images/face/11.gif"/></li>
										<li><img src="{{$host_root}}/images/face/12.gif"/></li>
										<li><img src="{{$host_root}}/images/face/13.gif"/></li>
										<li><img src="{{$host_root}}/images/face/14.gif"/></li>
										<li><img src="{{$host_root}}/images/face/15.gif"/></li>
									</ul>
								</td>
							</tr>
							<tr>
								<td colspan="4" class="tip">
									温馨提示：您的评价在20~1000字之内。
									<font color="red">文明客观的评价，将使大家受益匪浅！</font>
								</td>
							</tr>
							{{if !$isLogin}}
							<tr>
								<td colspan="4">
								验证码：<input type="text" style="width:70px;ime-mode:disabled" id="word" name="word" maxlength="4" tabindex="3">&nbsp;<img src="/login.php?cmd=captcha" align="absmiddle" onClick="this.src='/login.php?cmd=captcha&'+Math.random()"/>
								</td>
							</tr>
							{{/if}}
							<tr>
								<td colspan="4"><img src="/images/submit.gif" style="cursor:pointer;" onclick="com_submit();"></td>
							</tr>
						</table>
					</form>
				</div>
			</div>
			<div class="clear"></div>
			<div class="clear"></div>
		</div>
	</div>
	<!--main left end -->
	<!--main right -->
	<div class="main_right">
		<div class="index_search">
			<img src="/images/index_search.gif" /><br/>
			<div class="index_search_1">
				<form name="searchform" method="post" action="/search.php">
				<div class="index_search_2">我要搜：<input type="text" name="search_name" value="输入企业名称或地址"><span>搜搜其它IT企业的信息和点评</span></div>
				<div class="index_search_3"><img src="/images/index_submit.gif"onclick="document.searchform.submit();"></div>
				</form>
			</div>
		</div>
		<div class="rank">
			<div class="header">企业热门排行</div>
			<ul>
				{{foreach from=$rank_rows key=key item=item}}
				<li><a href="/corporation/{{$item.id}}/" title="{{$item.name}}">{{$item.name}}</a></li>
				{{/foreach}}
			</ul>
		</div>
		<div class="rank">
			<div class="header">推荐企业</div>
			<ul>
				{{foreach from=$recom_rows key=key item=item}}
				<li><a href="/corporation/{{$item.recom_id}}/" title="{{$item.title}}">{{$item.title}}</a></li>
				{{/foreach}}
			</ul>
		</div>
	</div>
	<!--main right end-->
</div>
<!--content_main end -->
<script type="text/javascript" src="/script/jquery.js"></script>
<script type="text/javascript" src="/script/common.js"></script>
<script type="text/javascript" src="/script/comment.js"></script>
<script type="text/javascript" src="/script/corporation.js"></script>
<script type="text/javascript" src="/script/response.js"></script>
<script type="text/javascript" src="/kindeditor/kindeditor.js" charset="utf-8"></script>
<script type="text/javascript" language="javascript">
KE.show({
	id : 'content',
	resizeMode : 1,
	newlineTag : 'br',
	allowUpload : false,
	items : []
});

KE.show({
	id : 'res_comment',
	resizeMode : 1,
	newlineTag : 'br',
	allowUpload : false,
	items : []
});
var res_flg = false;
var orig = '输入企业名称或地址';
	$("input[name='search_name']").each(function(){
		$(this).focus(function(){
			if($(this).val() == orig){
				$(this).val('').css("color","#000");
			}
		}).blur(function(){
			if($(this).val() == ""){
				$(this).val(orig).css("color","#CCC");
			}
		})
	})
</script>
<!-- JiaThis Button BEGIN -->
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code/jiathis_r.js?move=0&amp;btn=r5.gif&amp;uid=1539793" charset="utf-8"></script>
<!-- JiaThis Button END -->
